import request from '@/utils/request'

// 查询材料运输信息列表
export function listMasterialTransport(query) {
  return request({
    url: '/business/masterialTransport/list',
    method: 'get',
    params: query
  })
}

// 查询材料运输信息详细
export function getMasterialTransport(materialId) {
  return request({
    url: '/business/masterialTransport/' + materialId,
    method: 'get'
  })
}

// 新增材料运输信息
export function addMasterialTransport(data) {
  return request({
    url: '/business/masterialTransport',
    method: 'post',
    data: data
  })
}

// 修改材料运输信息
export function updateMasterialTransport(materialId, data) {
  return request({
    url: '/business/masterialTransport/' + materialId,
    method: 'put',
    data: data
  })
}

// 删除材料运输信息
export function delMasterialTransport(materialId) {
  return request({
    url: '/business/masterialTransport/' + materialId,
    method: 'delete'
  })
}
